package cn.wanda.bi.sunshine.platform.server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * Created by wangfupeng1
 */

@SpringBootApplication
@EnableCaching
@EnableScheduling
@EnableFeignClients(basePackages = "cn.wanda.bi.sunshine.platform.server.client")
@ComponentScan(basePackages = "cn.wanda.bi.sunshine.platform.server")
@ServletComponentScan
@EnableCircuitBreaker
@EnableSwagger2
// @EnableDiscoveryClient
public class Application {

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}


}
